package com.webdrider.dao.util;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;



public final class PersistenceFactory {

	private static final PersistenceManagerFactory PERSISTENCE_MANAGER = JDOHelper
			.getPersistenceManagerFactory("transactions-optional");
	
	private PersistenceFactory() {}
	
	public static PersistenceManagerFactory getInstance() {
		return PERSISTENCE_MANAGER;
	}
	
	public static PersistenceManager getPersistenceManager() {
		return PERSISTENCE_MANAGER.getPersistenceManager();
	}
}
